package com.emep.changzhi.analyse.repository.systeminfo;

import com.emep.changzhi.analyse.entity.systeminfo.SysRoleInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import javax.transaction.Transactional;

/**
* @author Wangcc
* @Description: 角色信息表持久层
* @date 2018/2/24 14:31
* @version V1.0
*/
@Transactional
public interface SysRoleInfoRepository extends JpaRepository<SysRoleInfo,Long>{

    SysRoleInfo findSysRoleInfoById(String id);

    @Modifying
    Integer deleteById(String id);

    Page<SysRoleInfo> findAll(Specification<SysRoleInfo> spec, Pageable pageable);
}
